const express = require('express');
const router = express.Router();
const weatherController = require('../controllers/weatherController');
const authMiddleware = require('../middleware/authMiddleware');

router.get('/weather', authMiddleware, weatherController.getCurrentWeather);
router.get('/history/:location', authMiddleware, weatherController.getHistoricalWeather);
router.get('/:cityId', weatherController.getWeatherByCityId);
router.get('/:cityId/forecast', weatherController.getForecastWeather);

module.exports = router;